package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;
import com.heima.model.wemedia.vo.WmNewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jack
 * @data 2024 9:45
 */
@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {
    List<WmNewsVo> selectListVo(@Param("wmNewsPageReqDto") WmNewsPageReqDto wmNewsPageReqDto);

    int selectCountvo(@Param("wmNewsPageReqDto")WmNewsPageReqDto wmNewsPageReqDto);

    WmNewsVo selectOneVo(@Param("wmNewsVo")WmNewsVo wmNewsVo);
}
